package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 医保基金-转账记录对象 foundation_transfer_records
 * 
 * @author ruoyi
 * @date 2025-04-13
 */
@ApiModel(value = "FoundationTransferRecords", description = "医保基金-转账记录对象")
public class FoundationTransferRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 转账编号 */
    @ApiModelProperty(name = "转账编号")
    private String transferNumber;

    /** 参保人 */
    @ApiModelProperty(name = "参保人")
    private Long insuredPersonId;
    /** 参保人 */
    private InsuredPersons insuredPersons;


    /** 转账时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "转账时间")
    private Date transferTime;

    /** 转账金额 */
    @ApiModelProperty(name = "转账金额")
    private BigDecimal transferAmount;

    /** 转入账户类型('0-个人账户', '1-基金账户') */
    @ApiModelProperty(name = "转入账户类型('0-个人账户', '1-基金账户')")
    private Long accountType;

    /** 操作人 */
    @ApiModelProperty(name = "操作人")
    private String operator;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public InsuredPersons getInsuredPersons() {
        return insuredPersons;
    }

    public void setInsuredPersons(InsuredPersons insuredPersons) {
        this.insuredPersons = insuredPersons;
    }

    public void setTransferNumber(String transferNumber)
    {
        this.transferNumber = transferNumber;
    }

    public String getTransferNumber() 
    {
        return transferNumber;
    }

    public void setInsuredPersonId(Long insuredPersonId) 
    {
        this.insuredPersonId = insuredPersonId;
    }

    public Long getInsuredPersonId() 
    {
        return insuredPersonId;
    }

    public void setTransferTime(Date transferTime) 
    {
        this.transferTime = transferTime;
    }

    public Date getTransferTime() 
    {
        return transferTime;
    }

    public void setTransferAmount(BigDecimal transferAmount) 
    {
        this.transferAmount = transferAmount;
    }

    public BigDecimal getTransferAmount() 
    {
        return transferAmount;
    }

    public void setAccountType(Long accountType) 
    {
        this.accountType = accountType;
    }

    public Long getAccountType() 
    {
        return accountType;
    }

    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("transferNumber", getTransferNumber())
            .append("insuredPersonId", getInsuredPersonId())
            .append("transferTime", getTransferTime())
            .append("transferAmount", getTransferAmount())
            .append("accountType", getAccountType())
            .append("operator", getOperator())
            .toString();
    }
}
